﻿using Examples.HelloWorldPVCM.UI.Presenters;
using Examples.HelloWorldPVCM.UI.Views;
using Hrunga.PVCM.Framework.Attributes;
using Hrunga.PVCM.Framework.Controls;
using Hrunga.PVCM.WinForms;

namespace Examples.HelloWorldPVCM.WinForms
{
    /// <summary>
    /// A simple HelloWorld application
    /// </summary>
    [Form(Presenter = typeof(HelloWorldPresenter), View = typeof(IHelloWorldView))]
    public partial class HelloWorld : Form, IHelloWorldView
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="HelloWorld"/> class.
        /// </summary>
        public HelloWorld()
        {
            InitializeComponent();
        }

        ITextBox IHelloWorldView.Name
        {
            get { return this.txtName; }
        }

        /// <summary>
        /// Label to put a message in after the submit
        /// </summary>
        /// <value>A Label</value>
        public ILabel Message
        {
            get { return this.lblMessage; }
        }

        /// <summary>
        /// Button used to submit your name
        /// </summary>
        /// <value>A Button</value>
        public IButton SubmitName
        {
            get { return this.btnSubmitName; }
        }

        


       
    }
}
